import 'package:flutter/material.dart';

class MyNavigatorObserver extends NavigatorObserver{
  static MyNavigatorObserver _instance;

  MyNavigatorObserver._();

  factory MyNavigatorObserver.getInstance() {
    if (_instance == null) {
      _instance = MyNavigatorObserver._();
    }
    return _instance;
  }
}